import request from '@/utils/request'

// 查询试剂订单详细列表
export function listOrderList(query) {
  return request({
    url: '/product/orderList/list',
    method: 'get',
    params: query
  })
}

// 查询试剂订单详细详细
export function getOrderList(orderListId) {
  return request({
    url: '/product/orderList/' + orderListId,
    method: 'get'
  })
}

// 新增试剂订单详细
export function addOrderList(data) {
  return request({
    url: '/product/orderList',
    method: 'post',
    data: data
  })
}

// 修改试剂订单详细
export function updateOrderList(data) {
  return request({
    url: '/product/orderList',
    method: 'put',
    data: data
  })
}

// 删除试剂订单详细
export function delOrderList(orderListId) {
  return request({
    url: '/product/orderList/' + orderListId,
    method: 'delete'
  })
}

// 删除试剂订单详细
export function delOrderListByOrderId(orderId) {
  return request({
    url: '/product/orderList/delOrderListByOrderId/' + orderId,
    method: 'delete'
  })
}

// 导出试剂订单详细
export function exportOrderList(query) {
  return request({
    url: '/product/orderList/export',
    method: 'get',
    params: query
  })
}
